home *** CD-ROM | disk | FTP | other *** search
- property psp_mysprite, pf_ratio
- global gsp_backgroundsprite, gsp_navigatordisplaysprite
-
- on beginSprite me
- psp_mysprite = sprite(me.spriteNum)
- pf_ratio = float(gsp_backgroundsprite.member.width - (the stage).rect.width) / float(psp_mysprite.width - gsp_navigatordisplaysprite.width)
- end
-
- on updatenavigator me
- gsp_navigatordisplaysprite.locH = psp_mysprite.locH - (float(gsp_backgroundsprite.left) / pf_ratio)
- end
-
- on getPropertyDescriptionList me
- return [#myproperty: [#comment: "comment:", #format: #float, #range: [#min: 0, #max: 180], #default: 10]]
- end
-